#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>

struct stu
{
	char name[20];
	int age;
	double score;
};

void Print1(struct stu s)
{
	printf("%s\n", s.name);
	printf("%d\n", s.age);
	printf("%lf\n", s.score);
}

void Print2(struct stu* ps)
{
	printf("%s\n", ps->name);
	printf("%d\n", ps->age);
	printf("%lf\n", ps->score);
}

int main()
{
	struct stu s = { "zhang",25,87.8 };
	struct stu* ps = &s;
	Print1(s);
	printf("\n");
	Print2(ps);
	return 0;
}